export const typefix = (param, targetType) => {
  if (targetType.toLowerCase() === 'string') {
    return typeof param === 'string' ? param : ''
  } else if (targetType.toLowerCase() === 'array') {
    return param instanceof Array ? param : []
  }
}

// const test1 = {}
// console.log(typefix(test1, 'ArRaY'))
// console.log(typefix(test1, 'strING'))
